package com.pointstar.dp.software;

/**
 * 18年第一题：矩阵运算
 *
 * @author 朱科睿
 */
public class Matrix {

    /**
     * 判断m1,m2是否维度相同
     *
     * @param m1 m1
     * @param m2 m2
     * @return 结果
     */
    public static boolean haveSameDimension(int[][] m1, int[][] m2) {
        return false;
    }

    /**
     * 判断m1,m2是否维度相同
     *
     * @param m1 m1
     * @param m2 m2
     * @return 结果
     */
    public static boolean haveSameDimension(double[][] m1, double[][] m2) {
        return false;
    }

    /**
     * 将二维数组相加
     *
     * @param m1 m1
     * @param m2 m2
     * @return 结果
     */
    public static int[][] add(int[][] m1, int[][] m2) {
        return new int[1][1];
    }

    /**
     * 将二维数组相加
     *
     * @param m1 m1
     * @param m2 m2
     * @return 结果
     */
    public static double[][] add(double[][] m1, double[][] m2) {
        return new double[1][1];
    }

    public static void print(int[][] m1) {

    }

    public static void print(double[][] m2) {

    }

    public static void main(String[] args) {
        int[][] m1 = {{2,5},{1,6}};
        int[][] m2 = {{1,2},{1,2}};
        double[][] m3 = {{2,5},{1,6}};
        double[][] m4 = {{1,2},{1,2}};
        System.out.println(haveSameDimension(m1, m2));
        System.out.println(haveSameDimension(m3, m4));
        print(add(m1, m2));
        print(add(m3, m4));
    }

}
